<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
	<jsp:include page="/WEB-INF/jsp_lib/validate.jsp" />
	<jsp:include page="/WEB-INF/jsp_lib/my97.jsp"/>
	<jsp:include page="/WEB-INF/jsp_lib/layer.jsp" />
	<jsp:include page="/WEB-INF/jsp_lib/showimage.jsp" />
	<script type="text/javascript">
		$(function(){
			var img = "<img src='${path}/img/imgid.htm?mh=500&mw=500'/>";
			showBig(img);
		});
	
		function myChk(){
			var start_time = $("input[name='srh_start']").val();
			if(start_time.length==0){
				$("#form1").validate({
					rules:{
					'srh_end':{
						required: true
					}
					}
				});
			}
		}
		
		
		function downDetail(seal_id){
			$("input[name='srh_bank_id']").val(seal_id);
			var url = "${path}/ix/seal/select/detail.htm";
			$("#form1").attr("action", url);
			$("#form1").submit();
		} 
		
		function query(){
			$("#form1").submit();
		}
		
	</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp/common/select_user_bank.jsp" />
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/seal/select/list.htm" id="form1" method="post">
		<input type="hidden" name="srh_bank_id" /> 
			<h2>
				<div>印章查询</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
					<tr>
						<td width="80" align="right">
							<strong>选择机构：</strong>
						</td>
						<td width="150" align="left">
							<input name="srh_bank" type="text" onClick="getArea();"/> 
							
						</td>
						<td width="80" align="right">
							<strong>印章名称：</strong>
						</td>
						<td width="150" align="left">
							<input name="srh_name" type="text" /> 
						</td>
						<td width="80" align="right">
							<strong>印章编号：</strong>
						</td>
						<td width="150" align="left">
							<input name="srh_num"  type="text" /> 
						</td>
						<td width="5" align="right"></td>
					<!-- 	<td width="150" align="left">
							<input name="srh_end" readonly="readonly" type="text" maxlength="20" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /> 
						</td> -->
						<td align="left">
							<a href="javascript:query();">
								<img src="${path}/style_cp/img/query.jpg" name="Image4" width="85" height="27" border="0" id="Image4" /> 
							</a>
						</td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>印章名称</th>
					<th>印章编号</th>
					<th>当前所在机构</th>
					<th>印章字样</th>
					<th>印章图片</th>
					<th>印章状态</th>
					<th>启用状态</th>
					<th>使用状态</th>
					<th>停用状态</th>
					<th>用印方式</th>
					<th>印章类型</th>
					<th>保管人</th>
					<th>领取人</th>
					<th>详情</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="15"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${list}" var="v">
				<tr>
					<td>${v.name}</td>
					<td>${v.true_code}</td>
					<td>${v.bname1}</td>
					<td>${v.title}</td>
					<td><a target="_blank" class="banimg" id="${v.file_id}">
							<img src='${path}/img/${v.file_id}.htm?mh=50&mw=50'/>
							</a></td>
					<td>${v.flag}</td>
					<td>${v.flag_use}</td>
					<td>${v.flag_use_status}</td>
					<td>${v.flag_stop}</td>
					<td>${v.user_way}</td>
					<td>${v.cname}</td>
					<td>${v.uname1}</td>
					<td>${v.uname2}</td>
					<td><a href="javascript:downDetail('${v._id}');" class="asave"> 【详情】 </a>
						</td>
				</tr>
				</c:forEach>
			</table>
			<div class="options">
				<div class="quotes">
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>
		</form>
	</div>
</body>
</html>